package com.learn.jdk;


import java.util.Arrays;
import java.util.List;

/**
 * Copyright: Copyright (c) 2019 Asiainfo
 *
 * @ClassName: com.learn.jdk.ContextTest
 * @Description: 该类的功能描述
 * @version: v1.0.0
 * @author: lipan
 * @date: 2019/10/20 11:19
 * <p>
 * Modification History:
 * Date         Author          Version            Description
 * ------------------------------------------------------------
 * 2019/10/20      lipan          v1.0.0               修改原因
 */

public class ContextTest {



    public static void main(String[] args) {

//        MyInter inter1=()-> System.out.println("aaa");
//        System.out.println(inter1.getClass().getInterfaces()[0]);
//
//        MyInter2 inter2=()-> System.out.println("aaa");
//        System.out.println(inter2.getClass().getInterfaces()[0]);
//
//
//        Thread t1=new Thread(()-> System.out.println(Thread.currentThread().getName()));
//        t1.start();

        List<String> list = Arrays.asList("faker", "uzi", "clid");

        list.forEach((str)->{
            //判断长度


                 String s = str.substring(0, 1).toUpperCase();
                 StringBuffer s1=new StringBuffer(str);
                 s1.replace(0,1,s);
                 System.out.println(s1.toString());





        });


    }


}

@FunctionalInterface
interface  MyInter{
    void test();

}

@FunctionalInterface
interface  MyInter2{

    void test2();

}
